Exists Method

Wintellect PowerCollections

Collapse imageExpand ImageCollapseAll imageExpandAll imageDropDown imageDropDownHover imageCopy imageCopyHover image
[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Determines if the collection contains any item that satisfies the condition defined by predicate.

Namespace: Wintellect.PowerCollections
Assembly:  PowerCollections (in PowerCollections.dll)

Syntax

C#
public virtual bool Exists(
	Predicate<T> predicate
)
Visual Basic (Declaration)
Public Overridable Function Exists ( _
	predicate As Predicate(Of T) _
) As Boolean
Visual C++
public:
virtual bool Exists (
	Predicate<T>^ predicate
)

Parameters

predicate
Predicate<(Of <T>)>
A delegate that defines the condition to check for.

Return Value

True if the collection contains one or more items that satisfy the condition defined by predicate. False if the collection does not contain an item that satisfies predicate.

See Also